home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: leeds.ac.uk!news
- From: men3sd@leeds.ac.uk (Stephen Davison)
- Subject: Casting / Calling through virtual classes?
- Message-ID: <313EDA5E.41C67EA6@leeds.ac.uk>
- NNTP-Posting-Host: englib4.leeds.ac.uk
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3C sun4m)
- Content-Type: text/plain; charset=us-ascii
- Organization: University of Leeds
- MIME-Version: 1.0
- Date: Thu, 7 Mar 1996 12:45:21 +0000 (GMT)
- CC: stephen@emissive.demon.co.uk
- Content-Transfer-Encoding: 7bit
-
- Hello,
-
- I have a number of virtual classes that go along these lines..
- Class Structure..
-
-
- stuff above
-
- class curve
- {
- }
-
- class bounded_curve : curve
- {
- }
-
- class polyline : bounded_curve
- {
- ..stuff
- }
-
- class composite_curve : bounded_curve
- {
- ... stuff
- }
-
- Once in curve ie ( curve* cPtr = parent_curve() )
- how do I get to the class polyline etc.
-